package gbench.appdemo.medicine.chemistry.particle;

/**
 * 物质
 * @author gbench
 *
 */
public abstract class Matter {
    
    public Matter(final String name) {
        this.name = name;
    }
    
    public Matter(final String name,final Integer charge) {
        this.name = name;
        this.charge = charge;
    }

    public String getName() {
        return name;
    }

    public String toString() {
        return this.getName();
    }

    /**
     * @return the charge
     */
    public Integer getCharge() {
        return charge;
    }

    /**
     * @return the weight
     */
    public Integer getWeight() {
        return weight;
    }

    /**
     * @param charge the charge to set
     */
    public void setCharge(Integer charge) {
        this.charge = charge;
    }

    /**
     * @param weight the weight to set
     */
    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    protected String name;
    protected Integer charge = 0;
    protected Integer weight = 0;
}
